package com.example.cricketscorer.client.presenter;

import com.example.cricketscorer.client.CricketScorerEventBus;
import com.example.cricketscorer.client.view.RootScorerView;
import com.example.cricketscorer.client.widget.interfaces.IWidget;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;

@Presenter(view = RootScorerView.class)
public class RootScorerPresenter extends BasePresenter<RootScorerPresenter.IRootScorerView, CricketScorerEventBus> {

	public interface IRootScorerView {

		void setSummaryWidget( IWidget widget );

		void setBattingWidget( IWidget widget );

		void setBowlingWidget( IWidget widget );
		
		void setRecentOversWidget( IWidget widget );
		
		void setActionsWidget( IWidget widget );
	}
	
	public void onChangeBattingWidget( IWidget widget ) {
		view.setBattingWidget( widget );
	}

	public void onChangeActionsWidget( IWidget widget ) {
		view.setActionsWidget( widget );
	}

	

}
